import service from '../utils/request'

export function getArticleClassification(){
    return service({
        url: '/my/cate/list',
        method: 'GET'
    })
}

export function deleteArticleMsg(data){
    return service({
        url: '/my/cate/del',
        method: 'DELETE',
        params: data
    })
}

export function getArticleListMsg(data){
    return service({
        url: '/my/cate/info',
        method: 'GET',
        params: data
    })
}

export function addArticleMsg(data){
    return service({
        url: '/my/cate/add',
        method: 'POST',
        data
    })
}

export function changeArticleMsg(data){
    return service({
        url: '/my/cate/info',
        method: 'PUT',
        data
    })
}



// 文章
export function getArticleList(data){
    return service({
        url: '/my/article/list',
        method: 'GET',
        params:{
            ...data
        }
    })
}

export function delArticleItem(data){
    return service({
        url: '/my/article/info',
        method: 'DELETE',
        params:{
            ...data
        }
    })
}

export function ArticleDetail(data){
    return service({
        url: '/my/article/info',
        method: 'GET',
        params:{
            ...data
        }
    })
}
export function addArticle(data){
    return service({
        url: '/my/article/add',
        method: 'POST',
        data
    })
}


